import { deepIndex, deepId } from '@/utils'
import type { AsideState } from '../interface'

interface AsideListInterface {
  disabled: boolean
  name: string
  path: string
  children?: AsideListInterface[]
}

const before_asides: AsideListInterface[] = [
  {
    disabled: false,
    name: '主页',
    path: 'home',
  },
  {
    disabled: false,
    name: '菜单管理',
    path: 'menuManager',
  },
  {
    disabled: false,
    name: '系统设置',
    path: 'settings',
  },
  {
    disabled: false,
    name: '帮助中心',
    path: 'help',
  },
  {
    disabled: false,
    name: '用户管理',
    path: 'user',
  },
  {
    disabled: false,
    name: '权限管理',
    path: 'permission',
  },
  {
    disabled: false,
    name: '角色管理',
    path: 'role',
  },
  {
    disabled: false,
    name: '组件',
    path: 'components',
  },
  {
    disabled: false,
    name: '常用网站',
    path: 'utils',
  },
  {
    disabled: false,
    name: '抖音女神',
    path: 'tiktok',
  },
  {
    disabled: false,
    name: '小程序配置',
    path: 'miniprogram',
    children: [
      {
        disabled: false,
        name: '点餐配置',
        path: 'miniprogramOrder',
      },
    ],
  },
]

const asides: AsideState['asideList'] = deepId(deepIndex(before_asides))

export default asides
